export interface ResponseData{
    "code": number,
    "message": string,
    "ok": boolean
}

// 创建订单获取订单id的数据类型
export interface submitOrderResponseData extends ResponseData{
    "data": number,
}

// 订单详细数据类型
export interface orderInfoResponseData extends ResponseData{
    "data":{
        "id": number,
        "createTime": string,
        "updateTime": string,
        "isDeleted": number,
        "param": {
            "orderStatusString": string
        },
        "userId": number,
        "outTradeNo": string,
        "hoscode": string,
        "hosname": string,
        "depcode": string,
        "depname": string,
        "scheduleId": string,
        "title": string,
        "reserveDate": string,
        "reserveTime": number,
        "patientId": number,
        "patientName": string,
        "patientPhone": string,
        "hosRecordId": string,
        "number": number,
        "fetchTime": string,
        "fetchAddress": string,
        "amount": number,
        "quitTime": string,
        "orderStatus": number
    }
}


//生成二维码的数据类型

export interface qrcode{
    "codeUrl": string,
    "orderId": number,
    "totalFee": number,
    "resultCode": string
}

export interface qrcodeResponseData extends ResponseData{
    data:qrcode
}


// 订单列表数据类型
export interface order{
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": {
        "orderStatusString": string
    },
    "userId": number,
    "outTradeNo": string,
    "hoscode": string,
    "hosname": string,
    "depcode": string,
    "depname": string,
    "scheduleId": null,
    "title": string,
    "reserveDate": string,
    "reserveTime": number,
    "patientId": number,
    "patientName": string,
    "patientPhone": string,
    "hosRecordId": string,
    "number": number,
    "fetchTime": string,
    "fetchAddress": string,
    "amount": number,
    "quitTime": string,
    "orderStatus": number
}

export interface orderListResponseData extends ResponseData{
    data:{
        "records": order[],
        "total": number,
        "size": number,
        "current": number,
        "orders": any,
        "hitCount": boolean,
        "searchCount": boolean,
        "pages": number
    },
}

//订单状态的数据类型
export interface orderStatus{
    "comment": string,
    "status": number
}

export interface orderStatusResponseData extends ResponseData{
    data:orderStatus[]
}